import {IHttpResponse} from "@/utils/http/IHttpResponse";
import http from "@/utils/http/http";

export class PromoteService {
    static async levelSetting(): Promise<IHttpResponse> {
        return http('/api/promote/levelSetting', {method: 'get'})
    }

    static async stat(): Promise<IHttpResponse> {
        return http('/api/promote/stat', {method: 'get'})
    }

    static async record(params): Promise<IHttpResponse> {
        return http.get('/api/promote/record', { params: { ...params } })
    }

    static async receiveRebate(): Promise<IHttpResponse> {
        return http('/api/promote/receiveRebate', {method: 'get'})
    }

    static async getContent(params): Promise<IHttpResponse> {
        return http.get('/api/content/getList', { params: { ...params } })
    }

    static async getUserInviterCount(): Promise<IHttpResponse> {
        return http.get('/api/user/inviterCount')
    }

    static async getPromotesSatistics(): Promise<IHttpResponse> {
        return http.get('/api/promote/statistics')
    }
}
